package ebj.common.redis;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

public class JedisDemo {

	public static void main(String[] args) {
		JedisPool pool = new JedisPool(new JedisPoolConfig(), "192.168.63.128");
		Jedis jedis = pool.getResource();
		
		try {
			jedis.set("name", "firefox-20140603");
			String fooString = jedis.get("name");
			System.out.println(fooString);
		} catch (Exception e) {
			// TODO: handle exception
		}
	}
}
